package com.jwtproject.bootserver.security.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @Description：
 **/
public abstract class BaseUserDetailService implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String var1) throws UsernameNotFoundException {
        return getUserDetails(var1);
    }

    protected abstract UserDetails getUserDetails(String var1) ;
}
